import React from 'react';
interface AaaProps {
    name: string;
    content: React.ReactElement // 就是jsx类型
    age: React.ReactNode // 支持null undefined boolean jsx等
}

// 第一个参数是props，返回值是ReactNode
const Aaa: React.FunctionComponent<AaaProps> = (props) => {
    return <div>aaa, {props.name}</div>
}

function App() {
    return <div>
        <Aaa name="guang" content={<div>123</div>} age={null}></Aaa>
    </div>
}

export default App;